#!/usr/bin/env python

from PIL import Image

im = Image.open("PNG.png")
listOfPixels =  list(im.getdata())

sentence = ""
counter = 0
lastPixelOffset = 0

for pixel in listOfPixels:
  if pixel == 1:
    #white pixel	  
    #add new ascii character 
    sentence += chr(counter - lastPixelOffset)
    #save the offset of this white pixel
    lastPixelOffset = counter
  counter += 1

print sentence

#then convert sentence coded in morse to find the answer
#http://www.onlineconversion.com/morse_code.htm





